

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <meta name="layout" content="main" />
        <script type="text/javascript" src ="${resource(dir:'js',file:'function.js')}">
        </script>
        <title>Booking列表</title>
    </head>
    <body>
        <div class="body">
            <h1>Booking列表</h1>
            <g:if test="${flash.message}">
            <div class="message">${flash.message}</div>
            </g:if>
            <div class="dialog">
                <table>
                    <tbody>

                    
                        <tr class="prop">
                            <td valign="top" class="name">Id:</td>
                            
                            <td valign="top" class="value">${fieldValue(bean:bookingInstance, field:'id')}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name">Booking Items:</td>
                            
                            <td  valign="top" style="text-align:left;" class="value">
                                <ul>
                                <g:each var="b" in="${bookingInstance.bookingItems}">
                                    <li><g:link controller="bookingItem" action="show" id="${b.id}">${b?.encodeAsHTML()}</g:link></li>
                                </g:each>
                                </ul>
                            </td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name">Booking Num:</td>
                            
                            <td valign="top" class="value">${fieldValue(bean:bookingInstance, field:'bookingNum')}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name">Consignee Addr:</td>
                            
                            <td valign="top" class="value">${fieldValue(bean:bookingInstance, field:'consigneeAddr')}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name">Consignee Name:</td>
                            
                            <td valign="top" class="value">${fieldValue(bean:bookingInstance, field:'consigneeName')}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name">Consignee Phone:</td>
                            
                            <td valign="top" class="value">${fieldValue(bean:bookingInstance, field:'consigneePhone')}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name">Consignee Time:</td>
                            
                            <td valign="top" class="value">${fieldValue(bean:bookingInstance, field:'consigneeTime')}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name">Contract Num:</td>
                            
                            <td valign="top" class="value">${fieldValue(bean:bookingInstance, field:'contractNum')}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name">Customer Code:</td>
                            
                            <td valign="top" class="value">${fieldValue(bean:bookingInstance, field:'customerCode')}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name">Customer Name:</td>
                            
                            <td valign="top" class="value">${fieldValue(bean:bookingInstance, field:'customerName')}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name">Freightage:</td>
                            
                            <td valign="top" class="value">${fieldValue(bean:bookingInstance, field:'freightage')}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name">Shipper Addr:</td>
                            
                            <td valign="top" class="value">${fieldValue(bean:bookingInstance, field:'shipperAddr')}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name">Shipper Name:</td>
                            
                            <td valign="top" class="value">${fieldValue(bean:bookingInstance, field:'shipperName')}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name">Shipper Phone:</td>
                            
                            <td valign="top" class="value">${fieldValue(bean:bookingInstance, field:'shipperPhone')}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name">Shipper Time:</td>
                            
                            <td valign="top" class="value">${fieldValue(bean:bookingInstance, field:'shipperTime')}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name">Transit Type:</td>
                            
                            <td valign="top" class="value">${fieldValue(bean:bookingInstance, field:'transitType')}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name">Vehicle Type:</td>
                            
                            <td valign="top" class="value">${fieldValue(bean:bookingInstance, field:'vehicleType')}</td>
                            
                        </tr>
                    
                    </tbody>
                </table>
            </div>
            <div class="buttons">
                <g:form>
                    <input type="hidden" name="id" value="${bookingInstance?.id}" />
                    <span class="button"><input type="submit" name="_action_edit" value="修改" class="edit" /></span>
                    <span class="button"><input type="submit" name="_action_delete" value="删除" class="delete"
                    onclick="return confirm('${message(code:'default.delete.confirm')}');" /></span>					
                </g:form>
            </div>
        </div>
    </body>
</html>
